<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>Search</title>
</head>
<body>
    <div th:replace="common/Top"></div>

    <div id="Content">
        <div id="BackLink">
            <a href="/catalog/view">Return to Main Menu</a>
        </div>

        <div id="Catalog">
            <table>
                <tr>
                    <th>&nbsp;</th>
                    <th>Product ID</th>
                    <th>Name</th>
                </tr>

                <tr th:each="product:${session.productList}">
                    <td>
                        <img th:src="${product.image}">
                        <a th:href="@{/catalog/viewProduct?productId={productId}(productId=${product.productId})}" th:text="${product.description}">This is descn</a>
                    </td>

                    <td>
                        <b>
                            <font color="BLACK" th:text="${product.productId}"></font>
                        </b>
                    </td>

                    <td th:text="${product.name}"></td>
                </tr>

            </table>

        </div>
    </div>

    <div th:replace="common/Bottom"></div>

</body>
</html>